package com.cskaoyan._01basic._07flow._02test;

import java.util.Scanner;

/**
 * @author Macro_Ray
 * @since 2024/3/3 11:23
 */
public class If_04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入会员级别：");
        int level = sc.nextInt();
        int money = 1000;

        if (level >= 0 && level < 4) {
            if (level == 1) {
                System.out.println("会员一级，实际支付的钱：" + (money * 0.9));
            } else if (level == 2) {
                System.out.println("会员二级，实际支付的钱：" + (money * 0.8));
            } else if (level == 3) {
                System.out.println("会员三级，实际支付的钱：" + (money * 0.7));
            } else {
                System.out.println("非会员，要打就打骨折");
            }
        } else {
            System.out.println("输入错误！");
        }
    }
}
